package com.zs.java.base;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author madison
 * @description
 * @date 2021/10/6 15:53
 */
public class Demo5 {

    public static void main(String[] args) {
        Long long1 = Long.valueOf(100);
        Long long2 = 100L;
        Long long3 = 100L;
        Long long4 = 128L;
        Long long5 = 111128L;
        Integer integer1 = 200;
        int int1 = 100000;

        System.out.println(long1 == long2);
        System.out.println(+long1 == long2);

        System.out.println(long2 == long3);
        System.out.println(+long2 == long3);

        System.out.println(long4 == long5);
        System.out.println(+long4 == long5);

        AtomicInteger atomicInteger = new AtomicInteger(2);
        System.out.println(atomicInteger.incrementAndGet());
    }
}
